package com.chenyuxin.ilp.model.enums.exception;

import lombok.Getter;
@Getter
public enum UserExceptionEnums implements BaseExceptionEnum{
    USERNAME_OR_PASSWORD_ERROR(40001,"密码错误"),
    ACCOUNT_BANDED(40002,"账号被封禁"),
    ACCOUNT_OR_PHONE_NOT_EXIST(40003,"用户未注册"),
    PHONE_CODE_ERROR(40004,"验证码错误"),
    PHONE_CODE_EXPIRED(40005,"验证码已过期，请重新获取"),
    GET_VERIFICATION_CODE_ERROR(40007,"获取短信验证码失败"),
    NOT_ALLOW_PASSWORD(40008,"用户未设置密码，请先使用验证码登录"),
    PHONE_CODE_EXIST_ONE(40101,"您已获取过验证码，请在1分钟后重试"),
    PHONE_CODE_EXIST_THREE(40102,"您已获取过验证码，请在3分钟后重试"),
    USERNAME_REGISTERED(40201,"用户名已被使用"),
    REGISTER_TIMEOUT(40202,"注册超时，验证码已过期，请重新注册"),
    PHONE_REGISTERED(40203,"手机号已注册"),
    CAPTCHA_EXPIRE(40301,"验证码过期，请刷新"),
    CAPTCHA_ERROR(40302,"验证码错误，请刷新后重试"),
    NOT_LOGIN(40401,"用户未登录，请重新登录"),
    TOKEN_EXPIRE(40402,"TOKEN过期,请刷新token"),
    JWT_KEY_ERROR(40405,"JWT签名错误"),
    TOKEN_ERROR(40404,"token异常"),
    REFRESH_TOKEN_ERROR(40406,"refresh-token异常，请重新登录"),
    REFRESH_TOKEN_EXPIRE(40407,"RefreshToken过期，重新登录"),
    STORAGE_FULL(40501,"存储空间不足"),
    HEAD_NOT_EXIST(405002,"用户头像不存在");

    private final Integer code;
    private final String errorMessage;


    UserExceptionEnums(Integer code, String errorMessage) {

        this.code = code;
        this.errorMessage = errorMessage;

    }
}
